Protect __release_resource against resources without parents
authorPhil Elwell <phil@raspberrypi.org>
Fri, 13 Mar 2015 12:43:36 +0000 (12:43 +0000)
committerpopcornmix <popcornmix@gmail.com>
Mon, 20 Feb 2017 12:17:33 +0000 (12:17 +0000)
commit779942fb944cb07649891b6e6aeb2c3635cca859
tree53fbd841555e722419d12ce2aff80577b4098105
parent07b74df3aaf15ee88dbf54182f923e7ad9ce1478
Protect __release_resource against resources without parents

Without this patch, removing a device tree overlay can crash here.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
kernel/resource.c